class Drug < ActiveRecord::Base
	has_and_belongs_to_many :manufacturers
	has_and_belongs_to_many :suppliers
	has_and_belongs_to_many :stocks
	has_and_belongs_to_many :stock_loggings
	has_and_belongs_to_many :prescriptions
	
	validates :code, :name, :price_per_item, :description, presence: true
end
